/*网格*/
.grid {
    display: grid;
    grid-template-columns: repeat(10, 20px);
    gap: 0;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    justify-content: center;
    align-content: center;
}
.cell {
    width: 20px;
    height: 20px;
    background-color: #eee;
    border: 1px solid #ddd;
}
.alive {
    background-color: #666;
}

.ghost {
    background-color: #aaa;
}
/*控制*/
.flying-plat{
    background: linear-gradient(to right bottom, #0734ff22, #b117ee22);
    backdrop-filter: blur(4px);
    border: 1px solid #eee;
    border-radius: 8px;
}
.control-container{
    position: fixed;
    right: 12px;
    top: 120px;
    bottom: 280px;
    width: 180px;
    transition: .6s;
}
.control-container button{
    animation: bottom-in-ani .8s 1;
    width: calc(100% - 40px);
    height: 42px;
    background-color: #4f6aea;
    color: #fff;
    font-size: 17px;
    letter-spacing: 2px;
    border-radius: 8px;
    box-shadow: 0 4px 8px #00000044;
    cursor: pointer;
    transition: .6s;
    border: none;
}
.control-container button:hover{
    transform: rotateX(15deg);
    transition: .6s;
    box-shadow: 0 8px 20px #4f6aea88;
}
.control-container .content{
    position: absolute;
    right: 0;
    top: 12px;
    bottom: 12px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
}
.control-container .btn-container{
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-container img{
    width: 16px;
    cursor: pointer;
}

/*预设*/
.pre-container{
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    height: 200px;
    transition: .6s;
}
.pre-container .btn-container{
    position: absolute;
    left: 0;
    right: 0;
    top: 4px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pre-container .content{
    position: absolute;
    top: 24px;
    right: 12px;
    left: 12px;
    bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: start;
}
.pre-container .content div{
    margin: 0 12px;
    height: 100%;
    background: #ffffff22;
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    position: relative;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.pre-container .content img{
    object-fit: contain;
    max-width: 90%;
    max-height: 80%;
}
.pre-container .content p{
    margin: 0;
}
